package com.diamond.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user", catalog = "diamond")
public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -2208608663401441609L;
	private Long userId;
	private String userName;
	private String password;
	private String registerDate;
	private String userType;
	private String logo;
	private Integer logoWidth;
	private Integer logoHeight;
	private String bigPic;
	private String smallPic;
	private String delStatus = "0";
	private Long parentAgentId;
	private String cmpName;
	private String cmpAddress;
	private String brandName;
	private String email;
	private String contact;
	private String contactTel;
	private String cmpTel;
	private String cmpFax;
	private String postAddress;
	private String area;
	private String license;
	private String taxRegistration;
	private Long parentDealerId;
	private String addressee;
	private String addresseeTel;
	private String memo;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String userName, String password, String registerDate,
			String userType, String logo,Integer logoWidth,Integer logoHeight, String bigPic, String smallPic,
			String delStatus, Long parentAgentId, String cmpName,
			String cmpAddress, String brandName, String email, String contact,
			String contactTel, String cmpTel, String cmpFax,
			String postAddress, String area, String license,
			String taxRegistration, Long parentDealerId, String addressee,
			String addresseeTel, String memo) {
		this.userName = userName;
		this.password = password;
		this.registerDate = registerDate;
		this.userType = userType;
		this.logo = logo;
		this.logoWidth=logoWidth;
		this.logoHeight=logoHeight;
		this.bigPic = bigPic;
		this.smallPic = smallPic;
		this.delStatus = delStatus;
		this.parentAgentId = parentAgentId;
		this.cmpName = cmpName;
		this.cmpAddress = cmpAddress;
		this.brandName = brandName;
		this.email = email;
		this.contact = contact;
		this.contactTel = contactTel;
		this.cmpTel = cmpTel;
		this.cmpFax = cmpFax;
		this.postAddress = postAddress;
		this.area = area;
		this.license = license;
		this.taxRegistration = taxRegistration;
		this.parentDealerId = parentDealerId;
		this.addressee = addressee;
		this.addresseeTel = addresseeTel;
		this.memo = memo;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "user_id", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "user_name", length = 500)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "password", length = 500)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "register_date", length = 500)
	public String getRegisterDate() {
		return this.registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	@Column(name = "user_type", length = 500)
	public String getUserType() {
		return this.userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	@Column(name = "logo", length = 200)
	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}
	
	@Column(name = "logo_width")
	public Integer getLogoWidth() {
		return logoWidth;
	}

	public void setLogoWidth(Integer logoWidth) {
		this.logoWidth = logoWidth;
	}
	@Column(name = "logo_height")
	public Integer getLogoHeight() {
		return logoHeight;
	}

	public void setLogoHeight(Integer logoHeight) {
		this.logoHeight = logoHeight;
	}

	@Column(name = "big_pic", length = 200)
	public String getBigPic() {
		return this.bigPic;
	}

	public void setBigPic(String bigPic) {
		this.bigPic = bigPic;
	}

	@Column(name = "small_pic", length = 200)
	public String getSmallPic() {
		return this.smallPic;
	}

	public void setSmallPic(String smallPic) {
		this.smallPic = smallPic;
	}

	@Column(name = "del_status", length = 1)
	public String getDelStatus() {
		return this.delStatus;
	}

	public void setDelStatus(String delStatus) {
		this.delStatus = delStatus;
	}

	@Column(name = "parent_agent_id")
	public Long getParentAgentId() {
		return this.parentAgentId;
	}

	public void setParentAgentId(Long parentAgentId) {
		this.parentAgentId = parentAgentId;
	}

	@Column(name = "cmp_name", length = 500)
	public String getCmpName() {
		return this.cmpName;
	}

	public void setCmpName(String cmpName) {
		this.cmpName = cmpName;
	}

	@Column(name = "cmp_address", length = 500)
	public String getCmpAddress() {
		return this.cmpAddress;
	}

	public void setCmpAddress(String cmpAddress) {
		this.cmpAddress = cmpAddress;
	}

	@Column(name = "brand_name", length = 500)
	public String getBrandName() {
		return this.brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	@Column(name = "email", length = 500)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "contact", length = 500)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "contact_tel", length = 500)
	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	@Column(name = "cmp_tel", length = 500)
	public String getCmpTel() {
		return this.cmpTel;
	}

	public void setCmpTel(String cmpTel) {
		this.cmpTel = cmpTel;
	}

	@Column(name = "cmp_fax", length = 500)
	public String getCmpFax() {
		return this.cmpFax;
	}

	public void setCmpFax(String cmpFax) {
		this.cmpFax = cmpFax;
	}

	@Column(name = "post_address", length = 500)
	public String getPostAddress() {
		return this.postAddress;
	}

	public void setPostAddress(String postAddress) {
		this.postAddress = postAddress;
	}

	@Column(name = "area", length = 500)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "license", length = 500)
	public String getLicense() {
		return this.license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	@Column(name = "tax_registration", length = 500)
	public String getTaxRegistration() {
		return this.taxRegistration;
	}

	public void setTaxRegistration(String taxRegistration) {
		this.taxRegistration = taxRegistration;
	}

	@Column(name = "parent_dealer_id")
	public Long getParentDealerId() {
		return this.parentDealerId;
	}

	public void setParentDealerId(Long parentDealerId) {
		this.parentDealerId = parentDealerId;
	}

	@Column(name = "addressee", length = 500)
	public String getAddressee() {
		return this.addressee;
	}

	public void setAddressee(String addressee) {
		this.addressee = addressee;
	}

	@Column(name = "addressee_tel", length = 500)
	public String getAddresseeTel() {
		return this.addresseeTel;
	}

	public void setAddresseeTel(String addresseeTel) {
		this.addresseeTel = addresseeTel;
	}

	@Column(name = "memo", length = 500)
	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}